package com.etone.smartAudit.dto.serviceExpert;

import com.etone.smartAudit.dto.FileDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020/7/30
 * @description:
 */

@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@ApiModel(value = "专家详情表单")
public class ServiceExpertDTO implements Serializable {

    @ApiModelProperty("名称")
    @NotEmpty
    private String name;

    @ApiModelProperty("说明｜介绍")
    @NotEmpty
    private String remark;

    @ApiModelProperty("封面")
    @NotNull
    private FileDTO cover;

    @ApiModelProperty("详细说明")
    @NotEmpty
    private String detail;

    @ApiModelProperty("附件")
    private List<FileDTO> files;
}
